package reflect;

import reflect.annotations.AutoRunClass;
import reflect.annotations.AutoRunMethod;

@AutoRunClass
public class Student {
    private String name="张三";
    private int age = 16;
    @AutoRunMethod
    public void study(){
        System.out.println(name+"good good study,day day up");
    }
    public void sleep(){
        System.out.println(name+"睡觉");
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
